package com.microservice.order.feign;

import com.microservice.common.R;
import com.microservice.order.dto.OrderDTO;
import com.microservice.order.param.OrderParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * write something please~
 *
 * @author huangrz
 * @since 2021/9/15
 **/
@FeignClient("microservice-order")
@RequestMapping("/order")
public interface OrderClient {

    @PostMapping(value = "/save", produces = {MediaType.APPLICATION_JSON_VALUE})
    R<OrderDTO> save(@RequestBody OrderParam param);
}
